import request from '@/utils/request'

export function addRecord(data) {
  return request({
    url: '/juanbusiness/indent-after-sale/add',
    method: 'post',
    data
  })
}

export function findRecord(page, size,indentStatus,sysUserId) {
  return request({
    url: '/juanbusiness/indent-after-sale/findPage',
    method: 'get',
    params: { page: page, size: size,indentStatus: indentStatus, sysUserId: sysUserId}
  })
}

export function detailRecord(id) {
  return request({
    url: '/juanbusiness/indent-after-sale/get',
    method: 'get',
    params: {id: id}
  })
}

export function delRecord(id) {
  return request({
    url: '/juanbusiness/indent-after-sale/del',
    method: 'delete',
    params: {id: id}
  })
}

export function editRecord(data) {
    return request({
      url: '/juanbusiness/indent-after-sale/edit',
      method: 'put',
      data
    })
}


